package com.wz.project.system.ssj.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.wz.project.system.ssj.mapper.DeviceAgvSsjMapper;
import com.wz.project.system.ssj.domain.DeviceAgvSsj;
import com.wz.project.system.ssj.service.IDeviceAgvSsjService;
import com.wz.common.utils.text.Convert;

/**
 * AGV入库输送机管理Service业务层处理
 * 
 * @author wz
 * @date 2023-12-23
 */
@Service
public class DeviceAgvSsjServiceImpl implements IDeviceAgvSsjService 
{
    @Autowired
    private DeviceAgvSsjMapper deviceAgvSsjMapper;

    /**
     * 查询AGV入库输送机管理
     * 
     * @param name AGV入库输送机管理ID
     * @return AGV入库输送机管理
     */
    @Override
    public DeviceAgvSsj selectDeviceAgvSsjById(String name)
    {
        return deviceAgvSsjMapper.selectDeviceAgvSsjById(name);
    }

    /**
     * 查询AGV入库输送机管理列表
     * 
     * @param deviceAgvSsj AGV入库输送机管理
     * @return AGV入库输送机管理
     */
    @Override
    public List<DeviceAgvSsj> selectDeviceAgvSsjList(DeviceAgvSsj deviceAgvSsj)
    {
        return deviceAgvSsjMapper.selectDeviceAgvSsjList(deviceAgvSsj);
    }

    /**
     * 新增AGV入库输送机管理
     * 
     * @param deviceAgvSsj AGV入库输送机管理
     * @return 结果
     */
    @Override
    public int insertDeviceAgvSsj(DeviceAgvSsj deviceAgvSsj)
    {
        return deviceAgvSsjMapper.insertDeviceAgvSsj(deviceAgvSsj);
    }

    /**
     * 修改AGV入库输送机管理
     * 
     * @param deviceAgvSsj AGV入库输送机管理
     * @return 结果
     */
    @Override
    public int updateDeviceAgvSsj(DeviceAgvSsj deviceAgvSsj)
    {
        return deviceAgvSsjMapper.updateDeviceAgvSsj(deviceAgvSsj);
    }

    /**
     * 删除AGV入库输送机管理对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteDeviceAgvSsjByIds(String ids)
    {
        return deviceAgvSsjMapper.deleteDeviceAgvSsjByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除AGV入库输送机管理信息
     * 
     * @param name AGV入库输送机管理ID
     * @return 结果
     */
    @Override
    public int deleteDeviceAgvSsjById(String name)
    {
        return deviceAgvSsjMapper.deleteDeviceAgvSsjById(name);
    }
}
